home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / mciavi.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  3.0 KB  |  85 lines

  1. /**************************************************************************
  2.  *
  3.  *  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4.  *  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5.  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6.  *  PURPOSE.
  7.  *
  8.  *
  9. **    Copyright (C) Microsoft Corporation 1991-1996. All rights reserved.
  10. **
  11. **    Title: mciavi.h - Multimedia Systems Media Control Interface
  12. **    AVI driver external header file
  13. **
  14. **    Version:    1.00
  15. **
  16. **    Date:        16-JUL-1992
  17. **
  18. **    Depends on MMSYSTEM.H and WINDOWS.h
  19. */
  20.  
  21. /************************************************************************/
  22. #ifndef __MCIAVI_H
  23. #define __MCIAVI_H
  24.  
  25.  
  26. /*
  27. ** These three flags apply to the 'play' command:
  28. **    play <alias> window        Play in normal window
  29. **    play <alias> fullscreen        Play in 320x240 full-screen mode
  30. **    play <alias> fullscreen by 2    Play fullscreen, zoomed by 2
  31. */
  32. #define MCI_MCIAVI_PLAY_WINDOW        0x01000000L
  33. #define    MCI_MCIAVI_PLAY_FULLSCREEN    0x02000000L
  34. #define MCI_MCIAVI_PLAY_FULLBY2        0x04000000L
  35. /*
  36. ** Debugging constants for AVI diagnostics
  37. */
  38. /*
  39. ** Returns number of frames not drawn during last play.  If this number
  40. ** is more than a small fraction of the number of frames that should have
  41. ** been displayed, things aren't looking good.
  42. */
  43. #define MCI_AVI_STATUS_FRAMES_SKIPPED        0x8001L
  44. /*
  45. ** Returns a number representing how well the last AVI play worked.
  46. ** A result of 1000 indicates that the AVI sequence took the amount
  47. ** of time to play that it should have; a result of 2000, for instance,
  48. ** would indicate that a 5-second AVI sequence took 10 seconds to play,
  49. ** implying that the audio and video were badly broken up.
  50. */
  51. #define MCI_AVI_STATUS_LAST_PLAY_SPEED        0x8002L
  52. /*
  53. ** Returns the number of times that the audio definitely broke up.
  54. ** (We count one for every time we're about to write some audio data
  55. ** to the driver, and we notice that it's already played all of the
  56. ** data we have.
  57. */
  58. #define MCI_AVI_STATUS_AUDIO_BREAKS        0x8003L
  59.  
  60.  
  61. #define MCI_AVI_SETVIDEO_DRAW_PROCEDURE        0x8000L
  62.  
  63. #define MCI_AVI_SETVIDEO_PALETTE_COLOR        0x8100L
  64.  
  65.  
  66. /*
  67. ** This constant specifies that the "halftone" palette should be
  68. ** used, rather than the default palette.
  69. */
  70. #define MCI_AVI_SETVIDEO_PALETTE_HALFTONE       0x0000FFFFL
  71.  
  72. /*
  73. **    Custom error return values
  74. */
  75. #define MCIERR_AVI_OLDAVIFORMAT        (MCIERR_CUSTOM_DRIVER_BASE + 100)
  76. #define MCIERR_AVI_NOTINTERLEAVED    (MCIERR_CUSTOM_DRIVER_BASE + 101)
  77. #define MCIERR_AVI_NODISPDIB        (MCIERR_CUSTOM_DRIVER_BASE + 102)
  78. #define MCIERR_AVI_CANTPLAYFULLSCREEN    (MCIERR_CUSTOM_DRIVER_BASE + 103)
  79. #define MCIERR_AVI_TOOBIGFORVGA        (MCIERR_CUSTOM_DRIVER_BASE + 104)
  80. #define MCIERR_AVI_NOCOMPRESSOR         (MCIERR_CUSTOM_DRIVER_BASE + 105)
  81. #define MCIERR_AVI_DISPLAYERROR         (MCIERR_CUSTOM_DRIVER_BASE + 106)
  82. #define MCIERR_AVI_AUDIOERROR        (MCIERR_CUSTOM_DRIVER_BASE + 107)
  83. #define MCIERR_AVI_BADPALETTE        (MCIERR_CUSTOM_DRIVER_BASE + 108)
  84.  
  85. #endif /* __MCIAVI_H */